import request from '@/utils/request';

// 数据展示登录方法
export function getOrderList (pageNumber, pageSize) {
  const data = {
    pageNumber,
    pageSize
  }
  return request({
    url: '/tblOrderInfo/list?page=' + pageNumber + '&size=' + pageSize,
    headers: {
      isToken: false
    },
    method: 'get',
    data: data
  })
}

export function getOrderListByPost (tableData) {
  return request({
    url: '/tblOrderInfo/list',
    headers: {
      isToken: false
    },
    method: 'post',
    data: tableData
  })
}

export function save (data) {
  return request({
    url: '/tblOrderInfo/save',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}

export function update (data) {
  return request({
    url: '/tblOrderInfo/update',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}

export function delOrder (data) {
  return request({
    url: '/tblOrderInfo/delete',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}

export function exp () {
  return request({
    url: '/excel/export',
    headers: {
      isToken: false
    },
    method: 'post'
  })
}
